﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace cangfengUI
{
    public partial class FormBase : Form
    {
        //鼠标移动到窗体控件的悬浮提示
        private ToolTip _toolTip;
        public ToolTip ToolTip
        {
            get { return _toolTip; }
        }

        public FormBase() : base()
        {
            _toolTip = new ToolTip();
        }

        //窗体释放的时候，悬浮提示也释放
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);
            if (disposing)
            {
                _toolTip.Dispose();
            }
            _toolTip = null;
        }
    }
}
